package com.javafactroy.kunlong.common.config;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import javax.annotation.PostConstruct;

@Configuration
//@ConfigurationProperties(prefix = "dxp.server")
@Lazy(false)
@Data
@EnableApolloConfig("application")
@Slf4j
public class BipApolloConfig {
    //@Value("${dxp.properties.server.ip}")
    //String ip;
    //@Value("${dxp.properties.server.port}")
    //int port;

    //@Value("${dxp.properties.ftp.ip}")
    String ftpIp;
    //@Value("${dxp.properties.ftp.port}")
    int ftpPort;

    @PostConstruct
    public void init() {
        log.info("init BipApolloConfig!");
    }
}